﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HT.Future.Entities
{
    /// <summary>
    /// 微信用户注册表
    /// </summary>
    [Table("T_WxUser")]
    public class WxUser: BaseEntity
    {
        /// <summary>
        /// 小程序的唯一标识
        /// </summary>
        public string OpenId { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 头像地址
        /// </summary>
        public string FaceUrl { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        public string Country { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public GenderType Gender { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 是否已经注册
        /// </summary>
        public bool IsRegister { get; set; }
        /// <summary>
        /// 默认商户
        /// </summary>
        public int? DefualtBusiness { get; set; }
        /// <summary>
        /// 绑定关系
        /// </summary>
        public virtual ICollection<WxUserToBusiness> Businesses { get; set; }
    }
}
